import axios from "../axios";
import type { MenuVO } from "./types";
const prefix = `${import.meta.env.VITE_APP_API_URL}/menu`
class MenuController {
  list() {
    return axios.get<MenuVO[]>(`${prefix}/all`, {});
  }
  create(data: MenuVO) {
    return axios.post(`${prefix}/create`, data);
  }
}
export default MenuController;
